package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUseremailMapper;
import com.ruoyi.system.domain.SysUseremail;
import com.ruoyi.system.service.ISysUseremailService;

/**
 * 用户EmailService业务层处理
 * 
 * @author zax
 * @date 2022-03-31
 */
@Service
public class SysUseremailServiceImpl implements ISysUseremailService 
{
    @Autowired
    private SysUseremailMapper sysUseremailMapper;

    /**
     * 查询用户Email
     * 
     * @param id 用户Email主键
     * @return 用户Email
     */
    @Override
    public SysUseremail selectSysUseremailById(Long id)
    {
        return sysUseremailMapper.selectSysUseremailById(id);
    }

    /**
     * 查询用户Email列表
     * 
     * @param sysUseremail 用户Email
     * @return 用户Email
     */
    @Override
    public List<SysUseremail> selectSysUseremailList(SysUseremail sysUseremail)
    {
        return sysUseremailMapper.selectSysUseremailList(sysUseremail);
    }

    /**
     * 新增用户Email
     * 
     * @param sysUseremail 用户Email
     * @return 结果
     */
    @Override
    public int insertSysUseremail(SysUseremail sysUseremail)
    {
        return sysUseremailMapper.insertSysUseremail(sysUseremail);
    }

    /**
     * 修改用户Email
     * 
     * @param sysUseremail 用户Email
     * @return 结果
     */
    @Override
    public int updateSysUseremail(SysUseremail sysUseremail)
    {
        return sysUseremailMapper.updateSysUseremail(sysUseremail);
    }

    /**
     * 批量删除用户Email
     * 
     * @param ids 需要删除的用户Email主键
     * @return 结果
     */
    @Override
    public int deleteSysUseremailByIds(Long[] ids)
    {
        return sysUseremailMapper.deleteSysUseremailByIds(ids);
    }

    /**
     * 删除用户Email信息
     * 
     * @param id 用户Email主键
     * @return 结果
     */
    @Override
    public int deleteSysUseremailById(Long id)
    {
        return sysUseremailMapper.deleteSysUseremailById(id);
    }
}
